package com.onlinemq.mq.app.onlinemq_v1_api;

public class OnlineMQWebserviceSoapV1PortProxy implements com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQWebserviceSoapV1Port {
  private String _endpoint = null;
  private com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQWebserviceSoapV1Port onlineMQWebserviceSoapV1Port = null;
  
  public OnlineMQWebserviceSoapV1PortProxy() {
    _initOnlineMQWebserviceSoapV1PortProxy();
  }
  
  public OnlineMQWebserviceSoapV1PortProxy(String endpoint) {
    _endpoint = endpoint;
    _initOnlineMQWebserviceSoapV1PortProxy();
  }
  
  private void _initOnlineMQWebserviceSoapV1PortProxy() {
    try {
      onlineMQWebserviceSoapV1Port = (new com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQServiceLocator()).getOnlineMQWebserviceSoapV1Port();
      if (onlineMQWebserviceSoapV1Port != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)onlineMQWebserviceSoapV1Port)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)onlineMQWebserviceSoapV1Port)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (onlineMQWebserviceSoapV1Port != null)
      ((javax.xml.rpc.Stub)onlineMQWebserviceSoapV1Port)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQWebserviceSoapV1Port getOnlineMQWebserviceSoapV1Port() {
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port;
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct listQueueManagers(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.listQueueManagers(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct peekMessage(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.peekMessage(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct listBodyEncodings(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.listBodyEncodings(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct sendMessage(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.sendMessage(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct showQueueManager(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.showQueueManager(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct listQueueDefinitions(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.listQueueDefinitions(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct openConnection(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.openConnection(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct updateQueueManager(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.updateQueueManager(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct createQueueManager(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.createQueueManager(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct createQueueDefinition(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.createQueueDefinition(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct showQueueDefinition(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.showQueueDefinition(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct deleteQueueManager(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.deleteQueueManager(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct checkConnection(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.checkConnection(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct emptyQueueDefinition(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.emptyQueueDefinition(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct receiveMessage(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.receiveMessage(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct updateQueueDefinition(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.updateQueueDefinition(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct closeConnection(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.closeConnection(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct deleteQueueDefinition(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.deleteQueueDefinition(input);
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct listBodyTypes(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.listBodyTypes(input);
  }
  
  public java.lang.String test() throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.test();
  }
  
  public com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQResponseApiStruct deleteMessage(com.onlinemq.mq.app.onlinemq_v1_api.OnlineMQRequestApiStruct input) throws java.rmi.RemoteException{
    if (onlineMQWebserviceSoapV1Port == null)
      _initOnlineMQWebserviceSoapV1PortProxy();
    return onlineMQWebserviceSoapV1Port.deleteMessage(input);
  }
  
  
}